home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / xlt86.lbr / TEST1B.AQM / TEST1B.ASM
Assembly Source File  |  1979-12-31  |  2KB  |  158 lines

  1. ;
  2. ;    8080 assembler test instruction file
  3. ;
  4.     org    100h    ;test org pseudo op
  5. label1:    equ    $    ;test equ pseudo op
  6. symbol:    dw    label1    ;test defw pseudo op
  7. symbol:    db    03fh    ;test defb pseudo op form 1
  8. symbol    db    'THIS IS A TEST' ;test defb pseudo op form 2
  9. symbol:    ds    55    ;test defs pseudo op
  10. LNGLABL:EQU    0
  11. ;
  12.     ibm    'ASCII FIRST,0DFF,THEN HEX
  13. ;
  14.     mov    a,b    ;test load
  15.     mvi    a,0ffh
  16.     mov    a,m
  17.     mov    b,c    ;test load
  18.     mvi    b,0ffh
  19.     mov    b,m
  20.     mov    m,b
  21.     mov    m,m
  22.     mvi    m,23
  23.     stax    b
  24.     stax    d
  25.     sta    label1
  26.     ldax    b
  27.     ldax    d
  28.     lda    label1
  29.  
  30.     lxi    b,label1
  31.     lxi    d,label1
  32.     lxi    h,label1
  33.     lxi    sp,label1
  34.  
  35.     lhld    label1
  36.     shld    label1
  37.  
  38.     sphl
  39.  
  40.     push    b
  41.     push    d
  42.     push    h
  43.     push    psw
  44.  
  45.     pop    b
  46.     pop    d
  47.     pop    h
  48.     pop    psw
  49.  
  50.     xchg
  51.     xthl
  52.  
  53.     add    a
  54.     adi    0ffh
  55.     add    m
  56.     adc    a
  57.     aci    0ffh
  58.     adc    m
  59.     sub    a
  60.     sui    0ffh
  61.     sub    m
  62.     sbb    a
  63.     ana    a
  64.     ani    0ffh
  65.     ana    m
  66.     ora    a
  67.     xra    a
  68.     cmp    a
  69.  
  70.     inr    a
  71.     inr    m
  72.     dcr    m
  73.  
  74.     dad    b
  75.  
  76.     inx    b
  77.     inx    d
  78.     inx    h
  79.     inx    sp
  80.  
  81.     dcx    b
  82.     dcx    d
  83.     dcx    h
  84.     dcx    sp
  85.  
  86.     rlc
  87.     ral
  88.     rrc
  89.     rar
  90.  
  91.     daa
  92.     cma
  93.     cmc
  94.     stc
  95.     nop
  96.     hlt
  97.     di
  98.     ei
  99.  
  100.     jmp    label1
  101.     jnz    label1
  102.     jz    label1
  103.     jnc    label1
  104.     jc    label1
  105.     jpo    label1
  106.     jpe    label1
  107.     jp    label1
  108.     jm    label1
  109.  
  110.     pchl
  111.  
  112.     call    label1
  113.     cnz    label1
  114.     cz    label1
  115.     cpo    label1
  116.     cpe    label1
  117.  
  118.     ret
  119.     rnz
  120.     rz
  121.     rpo
  122.  
  123.     rst    7
  124.  
  125.     in    03h
  126.     out    034h
  127.  
  128. label    jnz $+3 ; test !label2 jmp label ; comment ! lb3:rpo
  129. ********************************************************
  130. ;*******************************************************
  131. ;
  132.  
  133. file:    xTHL    ; comment 17
  134.     XCHg        ; comment 25
  135.             ; comment 25
  136.     longname        ; comment 33
  137. longname                ; comment 41
  138. longname::
  139.     xra    a    ; comment 25
  140. longname::cma        ; comment 25
  141. longname::    cma
  142. ;
  143. elab::    lhld    nnnnnnnnnnNnn    ; comment 33
  144. longname:cma
  145. longname:    cma
  146. short1::cma ;comment
  147. short:    ; comment 9
  148. short    ; comment 9
  149.     ; comment 9
  150.                         ; comment 49
  151. label    cma!cma! cma    ; comment 25
  152. label    cma !cma !cma    ; comment 25
  153. label    cma ! cma ! cma    ; comment 25
  154.     daa    ; comment 17
  155.     end    ; comment 17
  156.  
  157.     end    $
  158.